Reuse installed packages for exact snapshot resets - #177
Merged
Conversation
jezdez
force-pushed
the
fix/issue-150-snapshot-artifacts
branch
4 times, most recently
from
September 4, 2026 17:01
0b4acf4 to
cd5b586
Compare
jezdez
force-pushed
the
fix/issue-150-snapshot-artifacts
branch
from
September 7, 2026 09:40
303966a to
009ade6
Compare
3 tasks
travishathaway
approved these changes
Sep 9, 2026
travishathaway
left a comment
There was a problem hiding this comment.
I think this is a sound approach. I feel like this is also new enough that making these changes won't be very impactful to users.
One thing I realized while review this pull request is that we don't have a way to easily inspect test coverage. That's why I created #183.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
conda self reset --snapshot installer-exactcan fail when a recorded package URL disappears, even when the matching conda package remains installed.Exact resets now reuse installed packages whose URLs and recorded checksums match the snapshot. Conda prepares the remaining packages in a package cache, including
noarch: pythonpackages that need relinking after a Python version change. Local package archives are checked against recorded checksums. If preparation fails, reset reports the affected packages without exposing package URLs or credentials and leaves the target environment unchanged.The old
--snapshot installerspelling now stops before confirmation or environment changes and explains both replacements.installer-exactrestores the recorded packages.installer-updatedretains currently installed installer packages, conda plugins, and permanent packages with their dependencies, without updating or installing missing packages.Reset output respects
--jsonand--quiet.The broader CLI wording, documentation, and demo updates are in #181.
Closes #150
Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?